package it.tukano.treditor.engine.jme3;

import com.jme3.light.Light;
import com.jme3.scene.Node;

public class LightData {

    private final Light light;
    private final Node node;

    public LightData(Light light, Node node) {
        this.light = light;
        this.node = node;
    }

    public Light getLight() {
        return light;
    }

    public Node getNode() {
        return node;
    }

    @Override
    public int hashCode() {
        return light.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final LightData other = (LightData) obj;
        if (this.light != other.light && (this.light == null || !this.light.equals(other.light))) {
            return false;
        }
        return true;
    }
}
